<template>
	<view>
		<scroll-view scroll-y
		:style="{height:'calc(100vh - ' + height + 'rpx - env(safe-area-inset-bottom))'}">
			<slot></slot>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		name:"yw-scroll-view",
		props:{
			height:{
				default:0,
				type:Number,
				required:true
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style>

</style>
